package shiye;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-03-30
 * Time: 11:03
 */
public class Principal {
    private static Principal principal;
    public String name;

    private Principal(String name) {
        this.name = name;
    }

    public static Principal getprincipal() {
        if(principal == null) {
            principal = new Principal("刘校长");
        }
        return principal;
    }

    public void massagee(String massage) {
        System.out.println(name + "通过： " + massage);
    }

    public void tongZhi(String out) {
        System.out.println(name + "通知：" + out);
    }
}
